package com.sophimp.award.db

import androidx.room.Dao
import androidx.room.Query
import com.sophimp.award.bean.AwardItem

/**
 * create by sfx on 2022/8/9 11:59
 */
@Dao
interface AwardItemDao {

    @Query("SELECT * FROM AwardItem where typeId = :typeId")
    fun getAwardItemById(typeId : String): AwardItem?

    @Query("DELETE FROM AwardItem")
    fun deleteAll()
}